import{
    createRouter,
    createWebHashHistory
}from 'vue-router'

import Home from '../view/Home/index.vue'
import NotFound from '../view/404.vue'

const routes = [
    {
        path:'/',
        redirect:'/home'
    },
    {
        path:'/home',
        component:Home
    },
    {
        path:'/login',
        component: () => import('../view/Login/index.vue')
    },
    { 
        path: '/:pathMatch(.*)*',
        name: 'NotFound', 
        component: NotFound 
    },
]

const router = createRouter({
    history:createWebHashHistory(),
    routes
})



export default router

